package com.bjpowernode.edu.controller;

import com.bjpowernode.edu.domain.TCompany;
import com.bjpowernode.edu.service.TCompanyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@CrossOrigin
@RequestMapping("/com")
public class TCompanyController {
    @Autowired
    private TCompanyService companyService;

    @PostMapping("/selectAll")
    public List<TCompany> selectAll(){
        return companyService.selectAll();
    }
}
